//
//  WorkSummaryInfo.m
//  RSW.IOS
//
//  Created by zhaiqiuqiu on 16/12/20.
//  Copyright © 2016年 com.xtion.crm. All rights reserved.
//

#import "WorkSummaryInfo.h"

@implementation WorkSummaryInfo

static XMSQueueDictionary *s_jsonPair;

-(NSMutableDictionary*)expandfields
{
    if(_expandfields == nil)
        _expandfields = [NSMutableDictionary new];
    return _expandfields;
}

+ (void)initialize
{
    if(s_jsonPair == nil)
    {
        XMSQueueDictionary *qd = [[XMSQueueDictionary alloc]initWithStoreClass:[CDBColPropertyPair class]];
        [qd addKey:@"ID" value:@"workSummaryId"];
        [qd addKey:@"Title" value:@"title"];
        [qd addKey:@"Content" value:@"content"];
        
        s_jsonPair = [CTransformHTTPRESTObj registerJSONObjectClass:[WorkSummaryInfo class] JSONKeyPair:qd];
    }
}

+ (XMSQueueDictionary *)JSONObjectProperty:(NSArray *)JSONKeys
{
    return [CTransformHTTPRESTObj JSONObjectMap:s_jsonPair propertyWithJSONKey:JSONKeys];
}

+(WorkSummaryInfo*)emptyWorkSummaryInfo
{
    WorkSummaryInfo *model = [WorkSummaryInfo new];
    
    model.workSummaryId = @"";
    model.title = @"";
    model.content = @"";
    
    model.expandfields = [NSMutableDictionary new];
    
    return model;
}
@end
